package com.youku.core.model.vo
{
   import com.youku.interfaces.IVideoSegmentData;
   import com.youku.PlayerConfig;
   
   public class VideoSegmentData extends Object implements IVideoSegmentData
   {
      
      public function VideoSegmentData() {
         super();
         this._fileId = "";
         this._seconds = 0;
         this._no = -1;
         this._size = 0;
         this._speed = 0;
         this._startTime = -1;
         this._key = "";
      }
      
      protected var _fileId:String;
      
      protected var _seconds:Number;
      
      protected var _no:Number;
      
      protected var _size:Number;
      
      protected var _type:String;
      
      protected var _speed:Number;
      
      protected var _startTime:Number;
      
      protected var _key:String;
      
      public function get speed() : Number {
         return this._speed;
      }
      
      public function set speed(param1:Number) : void {
         this._speed = param1;
      }
      
      public function get startTime() : Number {
         return this._startTime;
      }
      
      public function set startTime(param1:Number) : void {
         this._startTime = param1;
      }
      
      public function set fileId(param1:String) : void {
         this._fileId = param1;
      }
      
      public function get fileId() : String {
         return this._fileId;
      }
      
      public function set seconds(param1:Number) : void {
         this._seconds = param1;
      }
      
      public function get seconds() : Number {
         return this._seconds;
      }
      
      public function set no(param1:Number) : void {
         this._no = param1;
      }
      
      public function get no() : Number {
         return this._no;
      }
      
      public function set size(param1:Number) : void {
         this._size = param1;
      }
      
      public function get size() : Number {
         return this._size;
      }
      
      public function set type(param1:String) : void {
         this._type = param1;
      }
      
      public function get type() : String {
         return this._type;
      }
      
      public function get baseFLVFileURL() : String {
         if(this._fileId == "")
         {
            return "";
         }
         var _loc1_:String = PlayerConfig.playListData.sid;
         var _loc2_:String = this.no.toString(16);
         if(_loc2_.length == 1)
         {
            _loc2_ = "0" + _loc2_;
         }
         var _loc3_:* = "http://k.youku.com/player/getFlvPath";
         _loc3_ = _loc3_ + ("/sid/" + _loc1_ + "_" + _loc2_ + "/st/" + this.type + "/fileid/" + this.fileId);
         return _loc3_;
      }
      
      public function get basePrevFileURL() : String {
         if(this._fileId == "")
         {
            return "";
         }
         var _loc1_:String = PlayerConfig.playListData.sid;
         var _loc2_:String = this.no.toString(16);
         if(_loc2_.length == 1)
         {
            _loc2_ = "0" + _loc2_;
         }
         var _loc3_:* = "http://k.youku.com/player/getPreviewPath";
         _loc3_ = _loc3_ + ("/sid/" + _loc1_ + "_" + _loc2_ + "/st/" + "flv" + "/fileid/" + this.fileId);
         return _loc3_;
      }
      
      public function get key() : String {
         return this._key;
      }
      
      public function set key(param1:String) : void {
         this._key = param1;
      }
   }
}
